﻿using System.Runtime.Serialization;

namespace ModelLayer
{
    [DataContract(IsReference = true)]
    public class Station
    {
        public Station(double latitude, double longtitude, string address, int postalcode, string city, long id, string name, int batteries)
        {
            Latitude = latitude;
            Longtitude = longtitude;
            Address = address;
            PostalCode = postalcode;
            City = city;
            Id = id;
            Name = name;
            Batteries = batteries;
        }

        public Station()
        {
        }

        [DataMember]
        public double Longtitude
        {
            get;
            set;
        }

        [DataMember]
        public double Latitude
        {
            get;
            set;
        }

        [DataMember]
        public string Address
        {
            get;
            set;
        }

        [DataMember]
        public int PostalCode
        {
            get;
            set;
        }

        [DataMember]
        public string City
        {
            get;
            set;
        }

        [DataMember]
        public long Id
        {
            get;
            set;
        }

        [DataMember]
        public string Name
        {
            get;
            set;
        }

        [DataMember]
        public int Batteries
        {
            get;
            set;
        }

        public override string ToString()
        {
            return Name;
        }
    }
}